/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testclient;

import com.felisberto.serialfwder.socket.client.IDataListener;
import com.felisberto.serialfwder.socket.client.NettyClient;
import java.io.IOException;
import java.util.concurrent.Executors;
import org.jboss.netty.bootstrap.ClientBootstrap;
import org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory;

/**
 *
 * @author Filipe
 */
public class TestClient implements IDataListener{
    
    NettyClient client;
    
    public TestClient() {
        client = new NettyClient(4444, "localhost", this);
    }
    
    public void connect(){
        client.connect();
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        TestClient test = new TestClient();
        test.connect();
    }

    @Override
    public void receiveData(String data) {
        System.out.println("DATA: "+data);
    }
}
